home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Amiga Amateur Radio User Group / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].zip / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].adf / DisView / DIALER < prev    next >
Text File  |  1995-05-29  |  8KB  |  258 lines

  1. ======                                              DISview [518]
  2. dialer
  3. ======
  4.  
  5. _________________________________________________________________
  6. dialer <interface> 
  7. _________________________________________________________________
  8. Terminate dialing on <interface>. Dialing may also be terminated 
  9. from the keyboard with the ESC ENTER sequence.
  10.  
  11. >> Example:  dialer sl0
  12.  
  13.  
  14. _________________________________________________________________
  15. dialer <interface> <dialer_filename> 
  16.                                [<seconds> [<pings> [<nodename>]]]
  17. _________________________________________________________________
  18. Set up an autodialer session for the interface.  Whenever the
  19. interface is idle for the interval in <seconds>, the autodialer
  20. will ping <nodename>.  If there is no answer after <pings>
  21. attempts, the autodialer will execute the special commands
  22. contained in <dialer_filename>.
  23.  
  24. If the interval in <seconds> is zero, a previous dialer command
  25. process will be removed.  If the number of <pings> is zero,
  26. <dialer_filename> will be executed without pinging <nodename>.
  27.  
  28. The dialer file may have any valid name, and must be located in 
  29. the NET root directory.  The dialer commands in the file are the
  30. following:
  31.  
  32. >> Example:  dialer sl0 dial_lon 
  33.              dialer sl0 dialer   (to re-dial a broken connection)
  34.  
  35. [See also the 'inline' command].
  36.  
  37.  
  38. _________________________________________________________________
  39. dialer <interface> <dialer_filename> demand
  40. _________________________________________________________________
  41. Start a dialer session which does not dial immediately, but will
  42. dial whenever there is traffic for that interface. Please note 
  43. that this will dial for _any_ traffic on that interface, which 
  44. includes your NNTP kick that happens every few minutes. Only use
  45. this option after making sure that you know exactly what traffic
  46. there will be. 
  47.  
  48. >> Example:  dialer sl0 dial_ltn demand
  49.  
  50.  
  51. _________________________________________________________________
  52. dialer <interface> <dialer_filename> failexit
  53. _________________________________________________________________
  54. If the dial fails then exit from NET. Cures the problem where a 
  55. failed dial would leave a machine waiting for someone to press 
  56. ENTER, and can make unattended dialing more reliable. 
  57.  
  58. (N.B. Unattended dialing is not recommended by DIS).
  59.  
  60. >> Example:  dialer sl0 dial_rdg failexit
  61.  
  62.  
  63.  
  64.  
  65. =====================================
  66. DIALER FILE: INITIALISATION  COMMANDS
  67. =====================================
  68.  
  69. -----------------------------------------------------------------
  70. dial_cmd "<string>"
  71. -----------------------------------------------------------------
  72.  
  73. >> Example:  dial_cmd "ATDT"
  74.  
  75.  
  76. -----------------------------------------------------------------
  77. init "<string>"
  78. -----------------------------------------------------------------
  79. Define the modem initialisation string.
  80.  
  81. >> Example:  init "ATx4&a3&b1&k3\r"
  82.  
  83.  
  84. -----------------------------------------------------------------
  85. ld_code "<string>"
  86. -----------------------------------------------------------------
  87.  
  88. >> Example:  ld_code "131,1234567890"
  89.  
  90.  
  91. -----------------------------------------------------------------
  92. number "<string>"
  93. -----------------------------------------------------------------
  94.  
  95. >> Example:  number "01582644848"
  96.  
  97.  
  98. -----------------------------------------------------------------
  99. retries <count>
  100. -----------------------------------------------------------------
  101.  
  102. >> Example:  retries 50
  103.  
  104.  
  105. ===========================
  106. DIALER FILE: DIAL  COMMANDS
  107. ===========================
  108.  
  109. -----------------------------------------------------------------
  110. control down|up
  111. -----------------------------------------------------------------
  112. Control the 'asy' interface.  The 'down' option drops DTR and
  113. RTS.  The 'up' option asserts DTR and RTS.
  114.  
  115. >>  Example:  control down
  116.  
  117.  
  118. -----------------------------------------------------------------
  119. dial
  120. -----------------------------------------------------------------
  121. Dial the number(s) specified in the 'number' command(s). 
  122.  
  123. If more than one number is specified, each number is dialed in
  124. turn in round-robin fashion until a connection is made.
  125.  
  126. >> Example:  dial
  127.  
  128.  
  129. -----------------------------------------------------------------
  130. init
  131. -----------------------------------------------------------------
  132. Initialise the modem.
  133.  
  134. >> Example:  init
  135.  
  136.  
  137. -----------------------------------------------------------------
  138. send "<string>" [<milliseconds>]
  139. -----------------------------------------------------------------
  140. This dialer command will write the specified string to the
  141. interface. The string quote marks are required, and the string
  142. may not contain embedded control characters.  However, the
  143. standard 'C' string escape sequences such as \r are recognized
  144. (but \0 should not be used).
  145.  
  146. >> Example:  send "PPP\r"
  147.  
  148.  
  149. -----------------------------------------------------------------
  150. speed <speed>
  151. -----------------------------------------------------------------
  152. This command sets the speed of the PC-to-modem link to <speed>
  153. bits per second.
  154.  
  155. >> Example:  speed 38400
  156.  
  157.  
  158. -----------------------------------------------------------------
  159. status up|down
  160. -----------------------------------------------------------------
  161.               
  162. >> Example:  status up
  163.  
  164.  
  165. -----------------------------------------------------------------
  166. wait <milliseconds> [ "<string>" [<speed>] ]
  167. -----------------------------------------------------------------
  168. If only <millseconds> is specified, the dialer pauses for the 
  169. desired number of milliseconds.  Otherwise, the dialer reads 
  170. until the <string> is detected on the interface.
  171.  
  172. If the string is not detected within the desired time, the
  173. autodialer will reset.  The string quote marks are required, and
  174. the string may not contain embedded control characters. However,
  175. the standard C string escape sequences are recognized (but \0
  176. should not be used).
  177.  
  178. If the <speed> parameter is specified, the dialer will continue
  179. to read characters until a non-digit is detected.  The string
  180. read is converted to an integer, and used to set the interface
  181. speed.  If the trailing non-digit is not detected within the
  182. desired time, or the integer value is not a valid speed, the
  183. autodialer will reset.
  184.  
  185. >> Examples:  wait 1000
  186.               wait 60000 "ogin:"
  187.  
  188.  
  189. -----------------------------------------------------------------
  190. cwait <milliseconds> [ "<success_string>"
  191.         "<failure_string>" ["<failure_string>" ...] [<speed>] ]
  192. -----------------------------------------------------------------
  193.  
  194. >> Example:  cwait 45000 "CONNECT" "BUSY" "NO CARRIER" "NONE"
  195.  
  196.  
  197.  
  198.  
  199.  
  200. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  201. EXAMPLE OF A COMPLETE DIALER FILE
  202.  
  203. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  204. # This is the dialer file used by NET.EXE/KA9Q - the live file is
  205. # simply called DIALER
  206. #
  207. # Most parts of this can be maintained by the DIS.EXE program
  208. # only alter this by hand if you are confident of what you are
  209. # doing
  210. # Configuration section.
  211. #
  212. configure:
  213. init "ATx4&a3&b1&k3\r"
  214. dial_cmd "ATDT"
  215. ld_code ""
  216. number "01582644848"
  217. retries 50
  218. #
  219. # Execution section.
  220. #
  221. execute:
  222. #
  223. # Toggle DTR.
  224. #
  225. control down
  226. wait 2000
  227. control up
  228. wait 2000
  229. #
  230. # Initialize the modem.
  231. #
  232. init
  233. wait 3000 "OK"
  234. #
  235. # Dial and wait for connection.
  236. #
  237. dial
  238. cwait 45000 "CONNECT" "BUSY" "NO CARRIER" "NONE"
  239. #
  240. # Now log in.
  241. #
  242. wait 60000 "ogin:"
  243. wait 1000
  244. send "dowrmain\r"
  245. wait 60000 "word:"
  246. send "mypasswd\r"
  247. wait 60000 "otocol:"
  248. send "PPP\r"
  249. wait 60000 "HELLO"
  250.  
  251. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  252.  
  253.  
  254. N.B. If the login account password is changed (by logging in to
  255. Demon with the command 'telnet password.demon.co.uk'), the 
  256. password must also be changed in the dialer file.
  257.